/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.mldn.demo;

/**
 *
 * @author Administrator
 */
public class NwDemo01 {
    public static void main(String[] args){
        System.out.println("\nfun()");
        fun();
        System.out.println("\nfun(1)");
        fun(1);
        System.out.println("\nfun(2)");
        func(1,2,3,4);
    }
    
    public static void fun(int... arg){
        for(int i=0;i<arg.length; i++){
            System.out.print(arg[i]+",");
        }
    }
    
    public static void func(int... arg){
        for(int x : arg){
            System.out.print(x+",");
        }
    }
}
